﻿
#region 程序集引用区
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using SubSonic.DataProviders;
using SubSonic.Extensions;
using System.Linq.Expressions;
using SubSonic.Schema;
using System.Collections;
using SubSonic;
using SubSonic.Repository;
using System.ComponentModel;
using System.Data.Common;
using SubSonic.Query;
using System.Xml;
using System.Xml.Serialization;
using System.Reflection;
#endregion

namespace WebeTerm.Model{
    
    /// <summary>
    /// 文 件 名: CompanyMailSmtp.cs
    /// CLR版本 : v2.0.50727
    /// 作   者 : lijun.hu
    /// 版    权: Copyright @2011 lijun.hu(FORCEN HU) 
    /// 电子邮箱：lijun.hu@shinsoft.net
    /// 说    明: 公司发邮件服务配置
    /// 生成日期: 2014年12月5日
    /// </summary>
    [Serializable]
    [Description(@"公司发邮件服务配置")]
    public partial class CompanyMailSMTP:BaseModel, IModel{
        
        #region 构造函数
        /// <summary>
        /// 公司发邮件服务配置
        /// </summary>
        public CompanyMailSMTP() : base(new CompanyMailSMTPTable(null)) { 
            
        }               
        #endregion
        
        #region CompanyMailSmtp属性列表
        System.Guid m_Id;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  Id
        {
            get { return m_Id; }
            set
            {
                //if(m_Id!=value)
                {
                    m_Id=value;
                    UpdateColumn(@"Id");
                }
            }
        }
        
        System.String m_ServerAddress;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  ServerAddress
        {
            get { return m_ServerAddress; }
            set
            {
                //if(m_ServerAddress!=value)
                {
                    m_ServerAddress=value;
                    UpdateColumn(@"ServerAddress");
                }
            }
        }
        
        System.Int32 m_ServerPort;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Int32  ServerPort
        {
            get { return m_ServerPort; }
            set
            {
                //if(m_ServerPort!=value)
                {
                    m_ServerPort=value;
                    UpdateColumn(@"ServerPort");
                }
            }
        }
        
        System.String m_SmtpAccount;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  SMTPAccount
        {
            get { return m_SmtpAccount; }
            set
            {
                //if(m_SmtpAccount!=value)
                {
                    m_SmtpAccount=value;
                    UpdateColumn(@"SmtpAccount");
                }
            }
        }
        
        System.String m_SmtPassword;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.String  SMTPassword
        {
            get { return m_SmtPassword; }
            set
            {
                //if(m_SmtPassword!=value)
                {
                    m_SmtPassword=value;
                    UpdateColumn(@"SmtPassword");
                }
            }
        }
        
        System.Boolean m_IsValid;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Boolean  IsValid
        {
            get { return m_IsValid; }
            set
            {
                //if(m_IsValid!=value)
                {
                    m_IsValid=value;
                    UpdateColumn(@"IsValid");
                }
            }
        }
        
        System.Guid m_CompanyId;
        /// <summary>
        /// 未定义
        ///</summary>
        [XmlAttribute()]
        [Description(@"未定义")]
        public System.Guid  CompanyId
        {
            get { return m_CompanyId; }
            set
            {
                //if(m_CompanyId!=value)
                {
                    m_CompanyId=value;
                    UpdateColumn(@"CompanyId");
                }
            }
        }
        
        #endregion
        
        
        #region 关联父级
        private CompanyInfo m_FK_COMPANY2M_REFERENCE_COMPANYI;
        /// <summary>
        /// FK_COMPANY2M_REFERENCE_COMPANYI:未定义.
        /// <remarks>
        /// 外键名称：FK_COMPANY2M_REFERENCE_COMPANYI
        /// 主表名称：CompanyInfo
        /// 外键字段：Id
        /// </remarks>
        /// </summary>
        [Browsable(false)]
        [XmlIgnore()]
        public CompanyInfo FK_COMPANY2M_REFERENCE_COMPANYI{
            get{
                return m_FK_COMPANY2M_REFERENCE_COMPANYI;
            }
            set{
                m_FK_COMPANY2M_REFERENCE_COMPANYI=value;
            }
        }
        #endregion
       
    }
} 



